<?php $this->renderFile(Yii::app()->basePath . "/views/_index/header.php",array('row' => $row,'data_business' => $data_business)); ?>
        
<div class="body">            
    <div class="container">
        <div class="page-header" style="margin-top: 0px">
            <h1 style="margin: 0px"><strong>Thêm Thương Hiệu</strong></h1>
        </div><!-- /.page-header -->
        <div class="row">
            <div class="col-xs-12">
                <form  id="idFormAdd" class="form-horizontal" method="post" enctype="multipart/form-data">
            <?php $form=$this->beginWidget('CActiveForm');?>
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Tên Thương Hiệu<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input placeholder="Tên cửa hàng" class="form-control" type="text" name="SalePointForm[sale_name]" id="SalePointForm_name"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Liên Lạc<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10 col-sm-5">                                    
                            <input placeholder="Số điện thoại" class="form-control" type="text" name="SalePointForm[sale_mobile]" id="SalePointForm_phone"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Địa Chỉ<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input placeholder="Địa chỉ" class="form-control" type="text" name="SalePointForm[sale_address]" id="SalePointForm_address"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Email<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input placeholder="Địa chỉ email" class="form-control" type="text" name="SalePointForm[sale_email]" id="SalePointForm_email"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Quốc Gia
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input value="Việt Nam" placeholder="Việt Nam" class="form-control" type="text" name="SalePointForm[sale_country]" id="SalePointForm_country"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Mã Quốc Gia
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input value="VN" placeholder="VN" class="form-control" type="text" name="SalePointForm[sale_country_code]" id="SalePointForm_countrycode"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Khu vực
                        </label>
                        <div class="col-sm-10 col-sm-5" id="area">
                            <!--<input value="Miền Nam" placeholder="Miền Bắc, Miền Nam,..." class="form-control" type="text" name="SalePointForm[sale_area]" id="SalePointForm_area"/>-->
                            <select class="form-control" name="SalePointForm[sale_area]" id="SalePointForm_area">
                                            <option value="0">Chọn thành phố</option>
                                            <?php foreach ($model->arrArea as $key => $value) {
                                                $key++;
                                                echo "<option value='$key'>".$value."</option>";
                                                }?>
                            </select>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
<!--                    <script type="text/javascript" charset="utf-8"> 
                        
                    </script>-->
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Quận/Huyện<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10 col-sm-5" id="district">
                            <select class="form-control" name="SalePointForm[sale_district]" id="SalePointForm_district">
                                            <option value="0">Chọn Quận</option>
                            </select>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Latitue
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input value="0.0" placeholder="Vĩ độ cửa hàng" class="form-control" type="text" name="SalePointForm[lat]" id="SalePointForm_lat" />
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Longtitue
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input value="0.0" placeholder="Kinh độ cửa hàng" class="form-control" type="text" name="SalePointForm[lng]" id="SalePointForm_lng"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Loại hình kinh doanh<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10 col-sm-5" id="business">
                            <!--<input placeholder="Loại sản phẩm" class="form-control" type="text" name="SalePointForm[sale_business]" id="SalePointForm_business"/>-->
                            <select class="form-control" name="SalePointForm[sale_business]" id="SalePointForm_business">
                                            <option value="0">Chọn loại cửa hàng</option>
                                            <?php foreach ($data_business as $key => $value) {
                                                $key++;
                                                echo "<option value='$key'>".$value['name']."</option>";
                                                }?>
                            </select>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label no-padding-right">
                            Xếp hạng<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10 col-sm-5">
                            <input placeholder="Đánh giá" class="form-control" type="number" name="SalePointForm[sale_rating]" id="SalePointForm_rating"/>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <div class="space-6"></div>
                    
<!--                    <div class="form-group"> 
                        <label class="col-sm-2 control-label no-padding-right">
                            Ảnh<font class="cl_red">*</font>
                        </label>
                        <div class="col-sm-10" >
                            <img src="../../images/photo.png" onclick="imageClick();" id="LinkImage" name="LinkImage" style="max-height: 600px; max-width: 800px;"/>
                            <input type="hidden" id="SalePointForm_image" name="SalePointForm[sale_image]" type="text"/>
                            <p class="help-block">                                
                                Image must be more than 100x100px and smaller than 3MB
                            </p>
                        </div>
                    </div>
                    <div class=" clearfix"></div>-->
                    <div class="clearfix form-actions">
                        <div class="col-md-offset-2 col-md-10">
                            <button class="btn btn-sm btn-primary" type="submit" value="submit">
                                <i class="icon-save align-top bigger-125"></i>
                                Save
                            </button>
                            <a class="btn btn-sm" type="button" href="../">        
                                Back
                                <i class="icon-backward align-top bigger-125"></i>
                            </a>
                        </div>
                    </div>
            <?php $this->endWidget(); ?>
                </form>
                
            </div>
        </div>
    </div>
</div>
<?php $this->renderFile(Yii::app()->basePath . "/views/_index/footer.php",array('modelcontact' => $modelcontact,)); ?>
